package com.itheima.array.memory;

/**
 * @author Anomaly
 * @date 2022/11/30 13:17
 */

/**
 * 两个变量指向同一数组
 */
public class ArrayDemo {
    public static void main(String[] args) {
        int[] arr1 = {11, 22, 33};
        int[] arr2 = arr1;
        System.out.println(arr1);
        System.out.println(arr2);

        arr2[1] = 50;
        System.out.println(arr1[1]);
        System.out.println(arr2[1]);
    }
}
